projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c68d01
)
powerpc/p1010rdb: fix calculating ddr_freq_mhz
author
Shengzhou Liu
<
[email protected]
>
Tue, 13 Aug 2013 08:41:19 +0000
(16:41 +0800)
committer
York Sun
<
[email protected]
>
Tue, 20 Aug 2013 17:46:58 +0000
(10:46 -0700)
There was a bug for calculating ddr_freq_mhz,
it should be divided by
1000000
rather than 0x1000000.
Signed-off-by: Shengzhou Liu <
[email protected]
>
Acked-by: York Sun <
[email protected]
>
board/freescale/p1010rdb/spl_minimal.c
patch
|
blob
|
history
diff --git
a/board/freescale/p1010rdb/spl_minimal.c
b/board/freescale/p1010rdb/spl_minimal.c
index 73289f3656d93702e2bf2389813f1bc4c3f92bcd..d0e712eb303112fadc49e5182b28867d336ab244 100644
(file)
--- a/
board/freescale/p1010rdb/spl_minimal.c
+++ b/
board/freescale/p1010rdb/spl_minimal.c
@@
-26,7
+26,7
@@
void sdram_init(void)
ddr_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO;
ddr_ratio = ddr_ratio >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
- ddr_freq_mhz = (CONFIG_SYS_CLK_FREQ * ddr_ratio) /
0x
1000000;
+ ddr_freq_mhz = (CONFIG_SYS_CLK_FREQ * ddr_ratio) / 1000000;
/* mask off E bit */
u32 svr = SVR_SOC_VER(mfspr(SPRN_SVR));